package com.atguigu.blog.mapper;

import com.atguigu.blog.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MikeCoder
 * @create 2023-11-2419:23
 * @description:
 * @verson:
 */
@Mapper
public interface CategoryMapper {
    List<Category> selectAll();

    List<Category> selectCategoryByCname(Category category);

    Integer insert(Category category);

    Integer update(Category category);

    Category selectCategoryByCid(Long cid);

    Integer delete(Long cid);

}
